﻿@model FinancasMD.Models.Conta

@{
    ViewBag.Title = "Adicionar";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Adicionar Carteira</title>
</head>
<body>
    @using (Html.BeginForm("Adicionar", "Conta", FormMethod.Post, new { @class = "form-horizontal" }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>Carteira</legend>

            <div class="editor-label">@Html.LabelFor(model => model.Descricao)</div>
            <div class="editor-field">@Html.TextBoxFor(model => model.Descricao)@Html.ValidationMessageFor(model => model.Descricao)</div>

            <div class="editor-label">@Html.LabelFor(model => model.Valor)</div>
            <div class="editor-field">@Html.TextBoxFor(model => model.Valor)@Html.ValidationMessageFor(model => model.Valor)</div>

            <div class="editor-label">@Html.LabelFor(model => model.DtVenvimento)</div>
            <div class="editor-field">@Html.TextBoxFor(model => model.DtVenvimento)@Html.ValidationMessageFor(model => model.DtVenvimento)</div>

            <div class="editor-label">@Html.LabelFor(model => model.QtdParcelas)</div>
            <div class="editor-field">@Html.TextBoxFor(model => model.QtdParcelas)@Html.ValidationMessageFor(model => model.QtdParcelas)</div>

            <div class="editor-label">@Html.LabelFor(model => model.TipoConta)</div>
            <div class="editor-field">@Html.TextBoxFor(model => model.TipoConta)@Html.ValidationMessageFor(model => model.TipoConta)</div>

            <div class="editor-label">@Html.LabelFor(model => model.TipoParcela)</div>
            <div class="editor-field">@Html.TextBoxFor(model => model.TipoParcela)@Html.ValidationMessageFor(model => model.TipoParcela)</div>

            <p>
                <input type="submit" value="Gravar" class="btn btn-primary" />
            </p>
        </fieldset>
    }

    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
</body>
</html>